package gui;

import gui.user.User;

import java.awt.event.*;

public class GUIKeyListener implements KeyListener
{
	private User user;
	
	public GUIKeyListener(User u)
	{
		user = u;
	}
	
	public void keyPressed(KeyEvent e)
	{
		user.keyPressed(e.getKeyCode());
	}
	
	public void keyTyped(KeyEvent e)
	{
		
	}
	
	public void keyReleased(KeyEvent e)
	{
		user.releaseKey(e.getKeyCode());
	}
}
